package com.itheima.d6_polymorphism.demo1;

public class Test {
    public static <intance> void main(String[] args) {
    Card card1 = new GoldCard("622622", "张三", 123456, 5000);
    Card card2 = new SiverCard("622629", "李三", 19555555, 2000);
    card1.pay(500);
    card2.pay(500);
    GoldCard g1 = (GoldCard) card1;
    g1.wash(1500);

    }
}
